package com.zcf.pojo;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 聊天记录表
 * </p>
 *
 * @author loupeng
 * @since 2018-12-27
 */
public class Chat extends Model<Chat> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "chat_id")
    private String chatId;
	private String userId;
	private String concent;
	/**
	 * 被聊天人
	 */
	private String coverUserId;
	private String addtime;

	public String getChatId() {
		return chatId;
	}

	public void setChatId(String chatId) {
		this.chatId = chatId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getConcent() {
		return concent;
	}

	public void setConcent(String concent) {
		this.concent = concent;
	}

	public String getCoverUserId() {
		return coverUserId;
	}

	public void setCoverUserId(String coverUserId) {
		this.coverUserId = coverUserId;
	}

	public String getAddtime() {
		return addtime;
	}

	public void setAddtime(String addtime) {
		this.addtime = addtime;
	}

	@Override
	protected Serializable pkVal() {
		return this.chatId;
	}

	@Override
	public String toString() {
		return "Chat{" + "chatId=" + chatId + ", userId=" + userId + ", concent=" + concent + ", coverUserId="
				+ coverUserId + ", addtime=" + addtime + "}";
	}
	
}
